/* 
 * File:   DriverLatar.cpp
 * Author: AXIOO
 *
 * Created on March 7, 2012, 10:40 PM
 */


#include <cstdlib>
#include <iostream>
//#include <conio.h>
#include "../Latar/Latar.h"
#include "../Bidang/Bidang.h"
#include "../Sel/Sel.h"
#include "../Point/Point.h"

int main(){
    Latar L(12,12);
    
    int segi = 4;
    Point segiLoc[4] = {Point(1,1),Point(10,1),Point(10,10),Point(1,10)};
    
    Bidang B(segi, segiLoc, 'x');
    cout <<"B  " << B << endl;
    
    L.AddBidang(&B);

    cout << L;
    
    cout << "L awal\n";
    L.ShowLatar();
    cout << "clean paper\n";
    L.CleanPaper('_');
    L.ShowLatar();
    
    
    cout << "counter-clockwise\n";
    cout << "L.Draw('*');\n";    
    L.Draw('.');
    
    cout << "clockwise\n";
 
    Latar L2(12,12);
    
    int segi2 = 4;
    Point segiLoc2[4] = {Point(1,1),Point(1,10),Point(10,10),Point(10,1)};
    Bidang B2(segi2, segiLoc2, 'x');
    L2.AddBidang(&B2);
    L2.Draw('_');
    
    cout << "gambar nya miring ya ? \n";
    L.ClearAll();
    int segi3 = 5;
    Point segiLoc3[5] = {Point(3,1),Point(7,1),Point(9,7),Point(5,10),Point(1,7)};
    Bidang B3(segi3, segiLoc3, 'x');
    L.AddBidang(&B3);
    L.Draw();
    
    
    cout << "segi6\n";
    L.ClearAll();
    int segi4 = 6;
    Point segiLoc4[6] = {Point(2,4),Point(5,2),Point(8,4),Point(8,8),Point(5,10),Point(2,8)};
    Bidang B4(segi4, segiLoc4, 'x');
    L.AddBidang(&B4);
    L.Draw();
    
    
}

